package com.ty.tour.service.serviceImp;


import com.ty.tour.pojo.UserInfo;
import com.ty.tour.mapper.UserInfoMapper;
import com.ty.tour.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Author is ***
 * @since 2020-03-19
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo userLogin(String name, String password) {
        return userInfoMapper.userLogin(name,password);
    }

    @Override
    public boolean saveUser(UserInfo userInfo) {
        return userInfoMapper.save(userInfo);
    }
}
